package com.tuanzhang.mall.goods.domain.valueobj;

import lombok.Getter;

@Getter
public class Spec {

    private Long id;
    private String spec;
    private SpecItem item;


    private Spec() {

    }

    private Spec(Long id, String spec, SpecItem item) {
        this.id=id;
        this.spec = spec;
        this.item = item;
    }

    public static Spec createSpec(Long id, String spec, SpecItem item) {
        return new Spec(id, spec, item);
    }

}